package demo4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2024-06-17
 * Time: 15:12
 */
class A{

    class B{

        class C{
            public int data = 10;
        }
    }
    public void test(){
        /*A a = new A();
        A.B b = a.new B();
        A.B.C c = b.new C();*/
        A.B.C c = new A().new B().new C();
        System.out.println(c.data);
    }
}
public class Test {
    public static void main(String[] args) {
        A a = new A();
        a.test();
    }

}
